// 引入项目初始样式
import '@/styles/common.scss'
import 'element-plus/dist/index.css'
import {createApp} from 'vue'
import pinia from "@/stores/pinia";

import App from './App.vue'
import router from './router'
// 全局引入element-icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import piniaPersist from 'pinia-plugin-persist'
pinia.use(piniaPersist)
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(pinia)
app.use(router)

app.mount('#app')
